{extend name="base_mobile"/}
{block name="body"}
<header class="hui-header">
    <div id="hui-back"></div>
    <h1>认证信息</h1>
    <div id="hui-header-menu" onclick="hui.showSlideMenu();"></div>
</header>
<div class="hui-wrap">
    <form action="{:request()->url()}" class="hui-form" method="post">
        <div class="hui-form-items">
            <div class="hui-form-items-title">账户状态</div>
            {if $data.is_auth =='99'}
            <a class="hui-button hui-button-small hui-success hui-fl">审核通过</a>
            {elseif $data.is_auth =='2'}
            <a class="hui-button hui-button-small hui-danger hui-fl">审核不通过</a>
            {elseif $data.is_auth =='1'}
            <a class="hui-button hui-button-small hui-primary hui-fl">信息待审核</a>
            {else}
            <a class="hui-button hui-button-small hui-fl">未审核</a>
            {/if}
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">认证名称</div>
            <input type="text" name="shopname" value="{$data.shopname|default=''}" autocomplete="off" placeholder="" lay-verify="required" class="hui-input hui-input-clear" {if $data.is_auth =='99'}disabled{/if}>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">联系电话</div>
            <input type="text" name="mobile" value="{$data.mobile|default=''}" autocomplete="off" placeholder="" lay-verify="required" class="hui-input" {if $data.is_auth =='99'}disabled{/if}>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">证件类型</div>
            <div class="hui-form-select">
                <select name="cert_type" {if $data.is_auth =='99'}disabled{/if}>
                    <option value="">请选择证件类型</option>
                    <option value="1" {if condition="isset($data) and $data.cert_type eq 1"}selected="selected"{/if}>身份证</option>
                    <option value="2" {if condition="isset($data) and $data.cert_type eq 2"}selected="selected"{/if}>营业执照</option>
                </select>
            </div>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">证件号码</div>
            <input type="text" name="cert_number" value="{$data.cert_number|default=''}" autocomplete="off" placeholder="" lay-verify="required" class="hui-input" {if $data.is_auth =='99'}disabled{/if}>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">证件图片</div>
            {if $data.is_auth =='99'}
            <img src="{$data.cert_image|default=''}" width="100%">
            {else}
            <input type="text" name="cert_image" value="{$data.cert_image|default=''}" autocomplete="off" placeholder="" class="hui-input">
            <button type="button" class="layui-btn layui-btn-primary layui-btn-position ajax-images"><i class="fa fa-file-image-o"></i> 选择图片</button>
            {/if}
        </div>
        {if $data.is_auth !='99'}
        <div style="padding:15px 8px;">
            <button class="hui-button hui-button-large hui-primary" lay-filter="*" lay-submit="">保存</button>
        </div>
        {/if}     
    </form>
</div>
{/block}
